package com.wish.wishhouse_foreclosure.entity;
/**
 *
 * @author
 *账单类型（金融属性）,
 *"1：收房贷变更,2：退租变更,3：普通账单(正常收房租务计划), 4:续约结算产生（包括自动生成的平账用的押金）
 */
public enum PayPlanZdType {

	SFDBG("收房贷变更",1),
	TZBG("退租变更",2),
	PTZD("普通账单",3),
	XYJS("续约结算",4);


	private String name;
	private int index;

	private PayPlanZdType(String name, int index) {
		this.name = name;
		this.index = index;
	}

	// 普通方法
	public static String getName(int index) {
		for (PayPlanZdType c : PayPlanZdType.values()) {
			if (c.getIndex() == index) {
				return c.name;
			}
		}
		return null;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getIndex() {
		return index;
	}

	public void setIndex(int index) {
		this.index = index;
	}

}
